import request from '../api'
const URL = '/user'

export function getAllUserByPage(search){
    return request.post(URL+`/getAllUserByPage`,search)
}

export function changeStatus(state){
    return request.post(URL+`/changeStatus`,state)
}

export function deleteUser(id){
    return request.delete(URL+`/deleteUser/${id}`)
}

export function getAllUser(search){
    return request.get(URL+`/getAllUser`)
}